#include <exception>
#include <iostream>

#ifndef WIN32
#include <unistd.h>
#include <stdlib.h>
#endif

#include "cppTutorExceptionHandlingCusTerminate.h"

using namespace std;

void terminator() {
  cout << "I'll be back!" << endl;
  exit(0);
}

void (*old_terminate)() = set_terminate(terminator);

void CcppTutorExceptionHandlingCusTerminate :: f ()
{
	cout << "CcppTutorExceptionHandlingCusTerminate::f()" << endl;
	throw Fruit();
}

